// @APIVersion 1.0.0
// @Title 网创园新媒体App 接口协议说明
// @Description 用于客户端和服务端的交互的调式和说明，也当做接口协议
// @Contact zhujiarong@95180.com
package routers

import (
	"wcy-xmt-api/controllers"
	"github.com/astaxie/beego"
)

func init() {
	ns :=
	beego.NewNamespace("v1",
		beego.NSNamespace("/video",
			beego.NSInclude(
				&controllers.VideoLiveController{},
			),
		),
		beego.NSNamespace("/room",
			beego.NSInclude(
				&controllers.ImgTxtLiveController{},
			),
		),
		beego.NSNamespace("/user",
			beego.NSInclude(
				&controllers.UserController{},
			),
		),
		beego.NSNamespace("/homepage",
			beego.NSInclude(
				&controllers.HomePageController{},
			),
		),
		beego.NSNamespace("/livepage",
			beego.NSInclude(
				&controllers.LivePageController{},
			),
		),
		beego.NSNamespace("/read",
			beego.NSInclude(
				&controllers.ReadingController{},
			),
		),
		beego.NSNamespace("/search",
			beego.NSInclude(
				&controllers.SearchController{},
			),
		),
		beego.NSNamespace("/file",
			beego.NSInclude(
				&controllers.FileUploadController{},
			),
		),
		beego.NSNamespace("/comment",
			beego.NSInclude(
				&controllers.CommentController{},
			),
		),
	)
	beego.AddNamespace(ns)
}
